package nowcoder;
/**
 * 密码转译
 */
import java.util.*;
public class day30_1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        List<String> list = new ArrayList<>();
        while(input.hasNext()) {
            String str = input.nextLine();
            list.add(changeStr(str));
        }

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }

    private static String changeStr(String str) {
        char[] chars = str.toCharArray();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < chars.length; i++) {
            if(Character.isUpperCase(chars[i])){
                int n = (int) chars[i];
                n = (n - 65 - 5 + 26) % 26 + 65;
                chars[i] = (char) n;
            }
            sb.append(chars[i]);
        }
        return sb.toString();
    }
}
